/**
Company: Sarkar software technologys
WebSite: http://www.sarkar.cn
Author: yeganaaa
Date : 5/16/18
Time: 6:23 PM
 */

package Cn.Sarkar.IMS.Entities

import Cn.Sarkar.Entities.Common.Additional.IName
import Cn.Sarkar.Entities.Common.BaseEntity
import Cn.Sarkar.Entities.IMS.IStorageRoom
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.hasOne
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.IDataContext
import Cn.Sarkar.IMS.DataBaseDefinations.StorageRooms

class StorageRoom(DataContext: IDataContext) : IStorageRoom, BaseEntity(DataContext, StorageRooms) {
    var nameID by StorageRooms.NameID
    override var name: IName by hasOne(StorageRooms.NameID) { Name(it) }
}